﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ENTITY;
using BUS;

public partial class Pages_DangKy : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_submit_Click(object sender, EventArgs e)
    {
            EntAccount entity = new EntAccount();
        entity.Username = tbx_username.Text.ToString();
        entity.Password = tbx_password.Text.ToString();
        Session["ss_username"] = tbx_username.Text.ToString();
        UBusAdd add = new UBusAdd();
        add.AddTaiKhoan(entity);
        Response.Redirect("ThongTinCaNhan.aspx", false);
    }
    protected void btn_reset_Click(object sender, EventArgs e)
    {
        tbx_username.Text = "";
        tbx_password.Text = "";
    }
    protected void btn_exit_Click(object sender, EventArgs e)
    {

    }
}
